package com.tulei.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tulei.system.Entity.Dto.Modle;
import com.tulei.system.Entity.Dto.TableDto;
import com.tulei.system.Entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 29605
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2024-06-06 16:53:07
* @Entity system.domain.SysUser
*/

@Mapper
public interface UserMapper extends BaseMapper<SysUser> {

    List<Modle> getList();

    int updateUserAvatar(@Param("userId") Long userId, @Param("avatar") String avatar);


    SysUser checkPhoneUnique(String phonenumber);

    int updateUser(SysUser user);

    public SysUser checkEmailUnique(String email);

    List<SysUser> selectList(TableDto tableDto, int offset, int pageSize);
}




